
//
// 120125 - (Wessel Bar) Created
//

package org.soekrat.gui.swing.studio;

import java.awt.BorderLayout;

import javax.swing.JPanel;

import org.soekrat.engine.Soekrat2Engine;
import org.soekrat.gui.swing.ptable.ProductTableView;

/**
 * <p>
 *   {@link RatStudioView} to show 
 *   {@link ProductTableView} in a dockable way.
 * </p>
 * @author Arne Halvorsen (AH)
 * @author Laetitia Le Chatton (LLC)
 */
@SuppressWarnings("serial")
public final class ProductTableRatStudioView extends RatStudioView 
{
  /**
   * <p>
   *   Constructor
   * </p>
   * @param engine {@link Soekrat2Engine} interfaced.
   */
  public ProductTableRatStudioView(Soekrat2Engine engine)
  {
    super("Product Table", engine);
    
    if (engine==null)
    {
      throw new NullPointerException("engine");
    }
    
    JPanel panel=getContentPanel();
    panel.setLayout(new BorderLayout());
    
    ProductTableView ptv=new ProductTableView(engine);
    panel.add(ptv, BorderLayout.CENTER);
  }
  
}
